export const staticRoutes = [
  {
    path: "/",
    redirect: "/login",
  },
  {
    path: "/login",
    name: "login",
    component: () => import("../views/base/login.vue"),
  },

  {
    path: "/layout",
    name: "layout",
    redirect: "/home",
    component: () => import("../components/layout/index.vue"),
    children: [
      {
        path: "/home",
        name: "home",
        meta: {
          title: "home",
          icon: "",
          name: "首页",
        },
        component: () => import("../views/base/home.vue"),
      },
      {
        path: "/newmenu",
        name: "newmenu",
        meta: {
          title: "newmenu",
          icon: "",
          name: "新菜单",
        },
        component: () => import("../views/base/newmenu.vue"),
      },
      {
        path: "/userinfo",
        name: "userinfo",
        meta: {
          title: "userinfo",
          icon: "",
          name: "个人信息",
        },
        component: () => import("../views/base/userinfo.vue"),
      },
      {
        path: "/reset",
        name: "reset",
        meta: {
          title: "reset",
          icon: "",
          name: "修改密码",
        },
        component: () => import("../views/base/reset.vue"),
      },
    ],
  },
  {
    path: "/:pathMatch(.*)*",
    meta: {
      title: "404",
      icon: "",
      name: "404",
    },
    component: () => import("../components/NotFound.vue"),
  },
];
